﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dot5Demo
{
    public class LabelCtl : BaseCtr
    {
        private TextRenderer TextRenderer;
        public override string Text
        {
            get { return TextRenderer.Text; }
            set
            {
                if (value != TextRenderer.Text)
                {
                    TextRenderer.Text = value;
                    this.Invalidate();
                }
            }
        }
        public LabelCtl()
        {
            TextRenderer = new TextRenderer();
            base.AddRenderer(TextRenderer);
        }
    }
}
